package com.aaa.sso.service;

import com.aaa.common.entity.User;
import com.aaa.common.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ FileName: RemoteUserService
 * @ Description:
 * @ Author:  STB
 * @ CreateTime: 2025/9/3 0003 19:10
 * @ Version: 1.0.0
 */
@FeignClient("SystemService")
public interface RemoteUserService {
    @GetMapping("user/queryByUserName")
    User queryByUserName(@RequestParam("userName") String userName);
    @PostMapping("user/edit")
    Result edit(@RequestBody User user);


}
